package com.iweb.config;

import com.iweb.netty.NettyServer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class NettyConfig {

    @Bean
    public NettyServer server() {
        NettyServer server = new NettyServer();
        new Thread(() -> {
            server.start(1234);
        }).start();
        return server;
    }
}
